
# 不优雅的写文件
f = open('./write.txt', 'w')
f.write('2222')
f.close()


# 优雅的写法
with open('./write.txt', 'w') as f:
    f.write('11111')
